<template>
	<view class="c-wrap">
		<view class="c-block">
			<view class="c-title">{{$t(param.title)}}</view>
			<view class="c-content" v-if="param.content!=null&&param.content!=''"><rich-text :nodes="param.content"></rich-text></view>
			
		</view>
	</view>
</template>

<script>
	//import clogin from '@/static/assets/clogin/js/clogin.js'
	export default {
		data() {
			return {
				sp:{
					type:null,
				},
				param:{
					title:null,
					content:null
				}
			}
		},
		onLoad(options) {
			let that = this;
			that.sp.type = options.type;
			that.cinit();
		},
		methods: {
			cinit:function(){
				let that = this;
				that.$u.clogin.unirequest("/csmwj/cloginuser/policy",{type: that.sp.type},function(res){
					that.param.title = res.data.title;
					that.param.content = res.data.content;
				});
			}
		}
	}
</script>

<style>

</style>
